package com.lovo.stock.utils;

import com.lovo.stock.constant.MessageCode;
import lombok.Data;

/**
 * 响应对象
 */
@Data
public class ResponseResult<T> {
    // 响应消息
    private String message;
    // 响应编码
    private String code;
    // 数据
    private T data;

    public ResponseResult() {
        this.message= MessageCode.SUCCESS.message;
        this.code= MessageCode.SUCCESS.code;
    }
}
